import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}


//渠道列表
export function poList(params) {
    return request({
      url: '/bee/shenye/channel/number/list',
      method: 'get',
      params
    })
}

// 查询店铺名称下拉框
export function shopSelect(params) {
    return request({
      url: '/bee/shenye/channel/number/shop/select',
      method: 'get',
      params
    })
}

// 查询赚卡名称下拉框
export function cardSelect(params) {
    return request({
      url: '/bee/shenye/channel/number/card/select',
      method: 'get',
      params
    })
}

//新增渠道
export function addPo(data) {
    return request({
      url: '/bee/shenye/channel/number',
      method: 'post',
      data
    })
}

//神椰-编辑渠道
export function editPo(data) {
    return request({
      url: '/bee/shenye/channel/number',
      method: 'put',
      data
    })
}

//神椰-渠道详情
export function poDetail(id) {
    return request({
      url: '/bee/shenye/channel/number/detail/'+id,
      method: 'get',
    })
}

//启用-停用竞猜活动链接
export function poStatus(data) {
    return request({
      url: '/bee/shenye/channel/number/status',
      method: 'put',
      data
    })
  }

// 导出二维码
export function poCode(params) {
    return request({
      url: '/bee/shenye/channel/number/code',
      method: 'get',
      params
    })
}

//审核评价
export function evaluateExamine(data) {
    return request({
      url: '/order/evaluate/examine',
      method: 'put',
      data
    })
}
//删除评价
export function delEvaluate(id) {
    return request({
      url: '/order/evaluate/delEvaluate/'+id,
      method: 'DELETE',
    })
}
//修改显示隐藏状态
export function changeShow(data) {
    return request({
      url: '/order/evaluate/changeShow',
      method: 'put',
      data
    })
}
